package com.bltec.emergency.service.mgrService;


import com.bltec.emergency.model.Permission;

import java.util.List;

public interface PermissionService {
    boolean add(Permission permission);

    List<Permission> getAll();

    List<Permission> getPermissionIdParentIdName();

    List<Permission> getAllPermissionByRoleId(Long roleId);

    Permission getPermissionById(Long id);

    boolean deletePermissionById(Long id);

    boolean updatePermissionById(Permission permission);

}
